simple mechanism in theory of machine gate exam